package com.link.base.base.errorcode.service;

import com.link.base.base.errorcode.model.ErrorCodeMessage;
import com.link.core.basic.service.BasicService;

/**
 * 错误编码信息维护
 *
 * @author cuizhiyong
 * @date 2019/4/25 19:07
 */
public interface ErrorCodeMessageService extends BasicService<ErrorCodeMessage> {

    /**
     * 更新错误编码数据的Redis缓存
     *
     * @author cuizhiyong
     * @date 2019/4/26 9:33
     */
    void refreshRedisCache();

    /**
     * 新建或更新前校验唯一性是否冲突
     *
     * @author cuizhiyong
     * @date 2019/4/28 15:46
     * @param errorCodeMessage 错误编码信息对象
     */
    boolean duplicateValidate(ErrorCodeMessage errorCodeMessage);

}
